//
//  FCShareUser.h
//  FCShare
//
//  Created by ZhouYou on 2022/7/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 性别
 */
typedef enum : NSUInteger {
    FCShareMale         =   1,  //男
    FCShareFemale       =   2,  //女
    FCShareUnknown      =   0,  //未知
} FCShareGender;

@interface FCShareUser : NSObject

/**
 平台类型
 */
@property (nonatomic) NSInteger platformType;

/**
 openID
 */
@property (nonatomic, copy) NSString *openID;

/**
 用户标识
 */
@property (nonatomic, copy) NSString *uid;

/**
 昵称
 */
@property (nonatomic, copy) NSString *nickname;

/**
 头像
 */
@property (nonatomic, copy) NSString *icon;

/**
 性别
 */
@property (nonatomic) FCShareGender gender;

/**
 生日
 */
@property (nonatomic, copy) NSString *birthday;

/**
 地区
 */
@property (nonatomic, copy) NSString *address;
/**
 apple登录的identityToken
 */
@property (nonatomic , copy) NSString *identityToken;
/**
 登录口令
 */
@property (nonatomic , copy) NSString *accessToken;

/**
 原始数据
 */
@property (nonatomic, copy) NSDictionary *userData;

- (instancetype)initWithUserInfo:(NSDictionary *)userInfo
                        platform:(NSInteger)platform
                             uid:(NSString *)uid;
@end

NS_ASSUME_NONNULL_END
